const HtmlWebpackPlugin = require('html-webpack-plugin')
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer')
module.exports = {
    mode: 'development',
    entry: {
        'app1': './src/app.js',
    },
    output: {
        clean: true
    },
    plugins: [
        new HtmlWebpackPlugin(),
        // new BundleAnalyzerPlugin(),
    ],
    module: {
        rules: [
            {
                test: /\.css$/,
                use: ['style-loader', {
                    loader: 'css-loader',
                    options: {
                        module: true
                    }
                }, 'postcss-loader']
            }
        ]
    }
}